package com.dinzeer.sjapadder.se;

import com.dinzeer.sjapadder.register.SjaSpecialEffectRegsitry;
import mods.flammpfeil.slashblade.event.SlashBladeEvent;
import mods.flammpfeil.slashblade.registry.specialeffects.SpecialEffect;
import mods.flammpfeil.slashblade.slasharts.JudgementCut;
import net.minecraft.world.entity.LivingEntity;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber
public class DarkCuter extends SpecialEffect {
    public DarkCuter() {
        super(30);
    }
    @SubscribeEvent
    public static void DarkCuterLetGo(SlashBladeEvent.DoSlashEvent event){
        if (event.getUser() instanceof LivingEntity){
            if (event.getSlashBladeState().hasSpecialEffect(SjaSpecialEffectRegsitry.DarkCuter.getId())){
                JudgementCut.doJudgementCut(event.getUser());
            }
        }
    }
}
